public class redo {
    private static int num = 0;

    public static void main(String[] args) {
        add();
    }

    public static int add() {
        num = num + 1;
        return reduce();
    }

    public static int reduce() {
        num = num + add();
        return num;
    }
}
